import javax.swing.*;
import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * User: Ryan
 * Date: 11/27/12
 * Time: 3:02 PM
 * To change this template use File | Settings | File Templates.
 */
public class HelloWorld
{
    public static void main(String[] args)
    {
        JFrame frame = new JFrame();
        frame.setTitle("Foo");
        frame.setSize(800,500);
        frame.setLocation(200,200);

        Container content = frame.getContentPane();
        content.setLayout(new BoxLayout(content, BoxLayout.PAGE_AXIS));

        JLabel label = new JLabel("<html><div align ='center'><b>Oh, hai!</b><br/><font size='30'>This is a test to see how I could work with html in to build a gui<br/>I am not a fan of html</font></div></html>");
        label.setAlignmentX(Component.CENTER_ALIGNMENT);
        label.setFont(new Font("Times New Roman", Font.PLAIN,50));

        content.add(Box.createVerticalStrut(100));
        content.add(label);

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        frame.setVisible(true);
    }
}
